<template>
    <div v-text="msg" class="dv1"></div>
    <div v-html="msg1" class="dv2"></div>
</template>
<script setup>
const msg="<span>这是v-text指令的文本内容</span>"
const msg1="<b>这是v-html指令的内容</b>"
</script>
<style scoped>
.dv1{
    color: red;
}
.dv2{
    color: rgb(31, 31, 214);
}
</style>